package com.cq.hd.product.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 拼团活动信息
 *
 * @author much
 * @since 2024/09/16 12:18
 */
@Data
public class ActiveGroupBuyVo implements Serializable {
    private static final long serialVersionUID = -1731902472699976868L;

    @ApiModelProperty(value = "拼团活动id")
    private Long id;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @ApiModelProperty(value = "拼团价格")
    private BigDecimal groupBuyPrice;

    @ApiModelProperty(value = "成团人数")
    private Integer groupNum;

    @ApiModelProperty(value = "成团时间（小时）")
    private Integer groupDuration;

    @ApiModelProperty(value = "是否虚拟成团 (0: 否, 1: 是)")
    private Integer virtualGroup;

    @ApiModelProperty(value = "开团权限 (ALL: 所有人, LEVEL1_AGENT: 一级经纪人)")
    private String groupCreatorPermission;

    @ApiModelProperty(value = "免单类型 (0-无，1: 团长免单, 2: 随机免单)")
    private Integer freeType;

    @ApiModelProperty(value = "团长0元开团开关 (0: 关闭, 1: 开启)")
    private Integer leadFreeEnabled;

    @ApiModelProperty(value = "直接参团开关 (0: 关闭, 1: 开启)")
    private Integer directJoinEnabled;

    @ApiModelProperty(value = "报名信息团长是否可见 (0: 不可见, 1: 可见)")
    private Integer leadViewEnrollInfo;

    @ApiModelProperty(value = "是否能创建拼团（开团权限）")
    private Boolean hasCreateGroupPermission;

}
